﻿using System;
using System.Runtime.Serialization;

namespace Hibiku.Models
{
    [DataContract]
    public enum EFilterMatchAction
    {
        [EnumMember]
        Delete,
        [EnumMember]
        Highlight
    }


    [DataContract]
    public class FilterRuleModel
    {
        [DataMember]
        public string Pattern
        {
            get;
            set;
        }

        [DataMember]
        public EFilterMatchAction Action
        {
            get;
            set;
        }

        public Array Actions
        {
            get
            {
                return Enum.GetValues(typeof(EFilterMatchAction));
            }
        }

        public FilterRuleModel(string pattern, EFilterMatchAction action)
        {
            Pattern = pattern;
            Action = action;
        }
    }
}
